package com.sylli.oeuf.server.game.logic.invocation;

import com.sylli.oeuf.server.game.logic.BattleActor;

public class WatchHPInvocationCondition extends WatchValueInvocationCondition {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8764636419767609889L;

	public WatchHPInvocationCondition(boolean isCheckGreaterThan,
			int againstValue) {
		super(isCheckGreaterThan, againstValue);
	}

	@Override
	public int getCurrentValue(int invocationRank, BattleActor caster) {
		int ret = (int) ((caster.getCurrHealth() / (float)caster.getMaxHealth()) * 100); 
		return ret; 
	}
}
